
# constraints
#-----------



#-----------
# ad9361 master

#--
# ad9364 S band
set_property -dict {PACKAGE_PIN AC13 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_clk_in_0_p]
set_property -dict {PACKAGE_PIN AD13 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_clk_in_0_n]
set_property -dict {PACKAGE_PIN AC23 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_frame_in_0_p]
set_property -dict {PACKAGE_PIN AC24 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports rx_frame_in_0_n]
set_property -dict {PACKAGE_PIN AE13 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[0]}]
set_property -dict {PACKAGE_PIN AF13 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[0]}]
set_property -dict {PACKAGE_PIN AA13 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[1]}]
set_property -dict {PACKAGE_PIN AA12 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[1]}]
set_property -dict {PACKAGE_PIN AB12 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[2]}]
set_property -dict {PACKAGE_PIN AC11 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[2]}]
set_property -dict {PACKAGE_PIN AE11 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[3]}]
set_property -dict {PACKAGE_PIN AF10 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[3]}]
set_property -dict {PACKAGE_PIN AB11 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[4]}]
set_property -dict {PACKAGE_PIN AB10 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[4]}]
set_property -dict {PACKAGE_PIN Y10 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_p[5]}]
set_property -dict {PACKAGE_PIN AA10 IOSTANDARD LVDS_25 DIFF_TERM 1} [get_ports {rx_data_in_0_n[5]}]
#--#
set_property -dict {PACKAGE_PIN AC14 IOSTANDARD LVDS_25} [get_ports tx_clk_out_0_p]
set_property -dict {PACKAGE_PIN AD14 IOSTANDARD LVDS_25} [get_ports tx_clk_out_0_n]
set_property -dict {PACKAGE_PIN AB15 IOSTANDARD LVDS_25} [get_ports tx_frame_out_0_p]
set_property -dict {PACKAGE_PIN AB14 IOSTANDARD LVDS_25} [get_ports tx_frame_out_0_n]
set_property -dict {PACKAGE_PIN AE10 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[0]}]
set_property -dict {PACKAGE_PIN AD10 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[0]}]
set_property -dict {PACKAGE_PIN Y12 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[1]}]
set_property -dict {PACKAGE_PIN Y11 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[1]}]
set_property -dict {PACKAGE_PIN AF15 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[2]}]
set_property -dict {PACKAGE_PIN AF14 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[2]}]
set_property -dict {PACKAGE_PIN AA15 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[3]}]
set_property -dict {PACKAGE_PIN AA14 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[3]}]
set_property -dict {PACKAGE_PIN AC17 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[4]}]
set_property -dict {PACKAGE_PIN AC16 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[4]}]
set_property -dict {PACKAGE_PIN AE17 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_p[5]}]
set_property -dict {PACKAGE_PIN AF17 IOSTANDARD LVDS_25} [get_ports {tx_data_out_0_n[5]}]
#--#
set_property -dict {PACKAGE_PIN AE16 IOSTANDARD LVCMOS25} [get_ports enable_0]
set_property -dict {PACKAGE_PIN AE15 IOSTANDARD LVCMOS25} [get_ports txnrx_0]
#--#
set_property -dict {PACKAGE_PIN AB17 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[0]}]
set_property -dict {PACKAGE_PIN AB16 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[1]}]
set_property -dict {PACKAGE_PIN AE22 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[2]}]
set_property -dict {PACKAGE_PIN AF22 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[3]}]
set_property -dict {PACKAGE_PIN AB21 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[4]}]
set_property -dict {PACKAGE_PIN AB22 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[5]}]
set_property -dict {PACKAGE_PIN Y16 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[6]}]
set_property -dict {PACKAGE_PIN Y15 IOSTANDARD LVCMOS25} [get_ports {gpio_status_0[7]}]
#--#
set_property -dict {PACKAGE_PIN AF24 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_0[0]}]
set_property -dict {PACKAGE_PIN AF25 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_0[1]}]
set_property -dict {PACKAGE_PIN AE23 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_0[2]}]
set_property -dict {PACKAGE_PIN AF23 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_0[3]}]
set_property -dict {PACKAGE_PIN AD16 IOSTANDARD LVCMOS25} [get_ports gpio_en_agc_0]
#--#set_property -dict {PACKAGE_PIN AD15 IOSTANDARD LVCMOS25} [get_ports gpio_sync_0]
set_property -dict {PACKAGE_PIN AD15 IOSTANDARD LVCMOS25} [get_ports mcs_sync]
#--#
set_property -dict {PACKAGE_PIN AA22 IOSTANDARD LVCMOS25} [get_ports gpio_resetb_0]

set_property -dict {PACKAGE_PIN AD23 IOSTANDARD LVCMOS25} [get_ports ref_clk_p]


# spi

set_property PACKAGE_PIN W13 [get_ports spi_ad9361_0]
set_property IOSTANDARD LVCMOS25 [get_ports spi_ad9361_0]
set_property PULLUP true [get_ports spi_ad9361_0]

set_property PACKAGE_PIN AA23 [get_ports spi_ad9361_1]
set_property IOSTANDARD LVCMOS25 [get_ports spi_ad9361_1]
set_property PULLUP true [get_ports spi_ad9361_1]


#

set_property -dict {PACKAGE_PIN Y13 IOSTANDARD LVCMOS25} [get_ports spi_clk]

set_property -dict {PACKAGE_PIN Y17 IOSTANDARD LVCMOS25} [get_ports spi_mosi]

set_property -dict {PACKAGE_PIN AA17 IOSTANDARD LVCMOS25} [get_ports spi_miso]

# ad9361 slave

#----------

########## ad9364 L band ##############################################

set_property -dict {PACKAGE_PIN D15 IOSTANDARD LVDS DIFF_TERM 1} [get_ports rx_clk_in_1_p]
set_property -dict {PACKAGE_PIN D14 IOSTANDARD LVDS DIFF_TERM 1} [get_ports rx_clk_in_1_n]
set_property -dict {PACKAGE_PIN F15 IOSTANDARD LVDS DIFF_TERM 1} [get_ports rx_frame_in_1_p]
set_property -dict {PACKAGE_PIN E15 IOSTANDARD LVDS DIFF_TERM 1} [get_ports rx_frame_in_1_n]
set_property -dict {PACKAGE_PIN A13 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_p[0]}]
set_property -dict {PACKAGE_PIN A12 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_n[0]}]
set_property -dict {PACKAGE_PIN B17 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_p[1]}]
set_property -dict {PACKAGE_PIN A17 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_n[1]}]
set_property -dict {PACKAGE_PIN C11 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_p[2]}]
set_property -dict {PACKAGE_PIN B11 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_n[2]}]
set_property -dict {PACKAGE_PIN B16 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_p[3]}]
set_property -dict {PACKAGE_PIN B15 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_n[3]}]
set_property -dict {PACKAGE_PIN C12 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_p[4]}]
set_property -dict {PACKAGE_PIN B12 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_n[4]}]
set_property -dict {PACKAGE_PIN E16 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_p[5]}]
set_property -dict {PACKAGE_PIN D16 IOSTANDARD LVDS DIFF_TERM 1} [get_ports {rx_data_in_1_n[5]}]

set_property -dict {PACKAGE_PIN AD20 IOSTANDARD LVDS_25} [get_ports tx_clk_out_1_p]
set_property -dict {PACKAGE_PIN AD21 IOSTANDARD LVDS_25} [get_ports tx_clk_out_1_n]
set_property -dict {PACKAGE_PIN AC21 IOSTANDARD LVDS_25} [get_ports tx_frame_out_1_p]
set_property -dict {PACKAGE_PIN AC22 IOSTANDARD LVDS_25} [get_ports tx_frame_out_1_n]
set_property -dict {PACKAGE_PIN AA19 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[0]}]
set_property -dict {PACKAGE_PIN AB19 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[0]}]
set_property -dict {PACKAGE_PIN W18 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[1]}]
set_property -dict {PACKAGE_PIN W19 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[1]}]
set_property -dict {PACKAGE_PIN AA20 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[2]}]
set_property -dict {PACKAGE_PIN AB20 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[2]}]
set_property -dict {PACKAGE_PIN AE18 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[3]}]
set_property -dict {PACKAGE_PIN AF18 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[3]}]
set_property -dict {PACKAGE_PIN AD18 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[4]}]
set_property -dict {PACKAGE_PIN AD19 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[4]}]
set_property -dict {PACKAGE_PIN AE20 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_p[5]}]
set_property -dict {PACKAGE_PIN AE21 IOSTANDARD LVDS_25} [get_ports {tx_data_out_1_n[5]}]

set_property -dict {PACKAGE_PIN AF19 IOSTANDARD LVCMOS25} [get_ports enable_1]
set_property -dict {PACKAGE_PIN AF20 IOSTANDARD LVCMOS25} [get_ports txnrx_1]

set_property -dict {PACKAGE_PIN C17 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[0]}]
set_property -dict {PACKAGE_PIN C16 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[1]}]
set_property -dict {PACKAGE_PIN A15 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[2]}]
set_property -dict {PACKAGE_PIN A14 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[3]}]
set_property -dict {PACKAGE_PIN D13 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[4]}]
set_property -dict {PACKAGE_PIN C13 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[5]}]
set_property -dict {PACKAGE_PIN C14 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[6]}]
set_property -dict {PACKAGE_PIN B14 IOSTANDARD LVCMOS18} [get_ports {gpio_status_1[7]}]

set_property -dict {PACKAGE_PIN AC26 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_1[0]}]
set_property -dict {PACKAGE_PIN W16 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_1[1]}]
set_property -dict {PACKAGE_PIN AB24 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_1[2]}]
set_property -dict {PACKAGE_PIN AA25 IOSTANDARD LVCMOS25} [get_ports {gpio_ctl_1[3]}]
set_property -dict {PACKAGE_PIN Y20 IOSTANDARD LVCMOS25} [get_ports gpio_en_agc_1]

set_property -dict {PACKAGE_PIN AC19 IOSTANDARD LVCMOS25} [get_ports gpio_resetb_1]































